package de.axiscars;

/**
 * This class is used to create an object Rental. It includes all attributes
 * that belong to a rental, the default constructor and constructor.
 * 
 * @author Sabrina Schwarze
 * @author Ramiz Loki
 * @author Hendrik Bielefeld
 *
 */

public class Rental {
    private int 		id;
    private Car			car;
    private Customer	customer;
    private Station		start_station;
    private Station		end_station;
    private String 		start_date;
    private String 		end_date;
    private String		state;
    private String		rate;   
    
    // The default constructor is very important, because it
    // is always used by Axis2
	public Rental() {
	}
	
	public Rental(int id, Car car, Customer customer, Station start_station,
					Station end_station, String start_date, String end_date,
				  	String state, String rate
				  ) {
		this.id = id;
		this.car = car;
		this.customer = customer;
		this.start_station = start_station;
		this.end_station = end_station;
		this.start_date = start_date;
		this.end_date = end_date;
		this.state = state;
		this.rate = rate;		
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Car getCar() {
		return car;
	}

	public void setCar(Car car) {
		this.car = car;
	}

	public Customer getCustomer() {
		return customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public Station getStart_station() {
		return start_station;
	}

	public void setStart_station(Station start_station) {
		this.start_station = start_station;
	}

	public Station getEnd_station() {
		return end_station;
	}

	public void setEnd_station(Station end_station) {
		this.end_station = end_station;
	}

	public String getStart_date() {
		return start_date;
	}

	public void setStart_date(String start_date) {
		this.start_date = start_date;
	}

	public String getEnd_date() {
		return end_date;
	}

	public void setEnd_date(String end_date) {
		this.end_date = end_date;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getRate() {
		return rate;
	}

	public void setRate(String rate) {
		this.rate = rate;
	}
	
}
